/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mantica.sip.convedia.videoAnuncio;

import java.io.IOException;
import javax.servlet.sip.Address;
import javax.servlet.sip.ServletParseException;
import javax.servlet.sip.SipServlet;
import javax.servlet.sip.SipServletRequest;
import javax.servlet.sip.SipServletResponse;
import javax.servlet.sip.SipURI;

/**
 *
 * @author cbrea
 */
//@javax.servlet.sip.annotation.SipServlet(loadOnStartup=1,name="ServletRegisterMSC")
public class ServletRegisterMSC extends SipServlet {

    @Override
    protected void doRegister(SipServletRequest req) {
        String expires = req.getHeader("Expires");

        SipServletResponse resp = req.createResponse(SipServletResponse.SC_OK);

        try {
            resp.send();
        } catch (IOException ex) {
            System.out.println("Fallo: " + ex);
        }
    }

    protected void doSubscribe(SipServletRequest req) {

        SipServletResponse resp = req.createResponse(SipServletResponse.SC_OK);

        try {
            resp.send();
        } catch (IOException ex) {
            System.out.println("Fallo: " + ex);
        }

    }
    
}
